Skip to content

test(pm-orchestration): CEN-05 experiment conformance tests + strict fixture contract (#9435) - #10721

Merged
dezren39 merged 1 commit into
mainfrom
queue/15947-9435-cen05-experiment
Nov 16, 2026
Merged

dezren39 merged 1 commit into
mainfrom
queue/15947-9435-cen05-experiment

Conversation

@dezren39

@dezren39 dezren39 commented Nov 16, 2026 •

Copy link
Copy Markdown
Member

Closes #9435 (CEN-05 — offline reference model and experiment runner).

The gate this task waited on has cleared (PR #9225 merged 2026-11-13) and the runner + fixtures already live on main in the design tree. This PR delivers the slice's missing owned file and hardens the runner's fixture contract so the acceptance negatives actually fail closed:

  • New validation/test_experiment.py (stdlib unittest, 10 tests, listed by exact name in the verification run): the named oracle test_experiment_replays_same_fixture_and_rejects_bad_contract — CLI replay of the same fixture is byte-stable with independently recomputed seed/digest pins, and five bad contracts (duplicate JSON key, unknown major schema, lossy numeric ID, invalid UTF-8, missing graph section) each fail closed with exit 1 and a machine-readable fail result. Plus independent-oracle coverage for: requirement AND filter as separate conjunctive gates, numeric work-ID ordering (rank 9 before 10, >2^53 IDs exact), RFC 8785 DTO bytes against contracts/digest-vectors.json golden vectors, the cycle insertion rule against a BFS oracle, cursor crash recovery at every lifecycle cut, operation apply-then-timeout with no blind resend, and seeded sampler probabilities against a Decimal enumeration.
  • validation/experiment.py: fixture loading now goes through a strict load_fixtures (duplicate-key rejection via object_pairs_hook, schema pin, required sections, ASCII decimal-string IDs). Behavior on the pinned fixture is unchanged: a recorded-scale run (--seed 9196 --cases 5000 --draws 50000) reproduces the committed report's values exactly.

Verification: python3 -m unittest -v test_experiment — 10 tests, all ok, including the exact-name listing the slice's done check requires.

Observation (not fixed here; report.json is not a CEN-05 owned file): the committed validation/report.json carries a stale fixture_sha256 — the treefmt reformat of fixtures.json changed its bytes without regenerating the report. All computed values still match a fresh run; regenerating report.json is a one-command follow-up for its owner.

@dezren39
dezren39 requested a review from a team as a code owner November 16, 2026 11:55
@coderabbitai

coderabbitai Bot commented Nov 16, 2026

Copy link
Copy Markdown

Warning

Review limit reached

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

Next included review available in 47 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available.

Learn how review limits work.

Review configuration:

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 0260980d-f54e-4be9-94de-bc799d2555f3
Commits

Reviewing files that changed from the base of the PR and between daa7e40 and 3710aee.

Files selected for processing: 2

  • doc/2026-11-13T03-20-24Z_design_pm-stack-fleet-orchestration/validation/experiment.py
  • doc/2026-11-13T03-20-24Z_design_pm-stack-fleet-orchestration/validation/test_experiment.py
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

@chatgpt-codex-connector

Copy link
Copy Markdown
Codex Review Summary: ❌ Failed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ❌ Failed 2026-11-16T11:55:29.939249Z
We couldn’t complete this review. Comment @codex review to try again.
3710aee PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.
To continue using code reviews, add credits to your account and enable them for code reviews in your settings.

@dezren39

Copy link
Copy Markdown
Member Author

Review disposition: Codex review of this head failed on Codex usage limits with zero findings (bot comment 2026-11-16T11:55Z; no review comments exist). CodeRabbit posted no findings. Verification is the CEN-05 done check itself: python3 -m unittest -v test_experiment lists all 10 tests by exact name and passes, including the named oracle test; a recorded-scale runner replay reproduces the committed report values exactly. Merging per fleet rules (CI runs on main).

@dezren39
dezren39 merged commit 42b40fa into main Nov 16, 2026
1 check passed
@dezren39
dezren39 deleted the queue/15947-9435-cen05-experiment branch November 16, 2026 11:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

design(pm-orchestration): Offline reference model and experiment runner

1 participant